/*
* ECARX Technology Limited is the owner of the copyright and the trade secret of this software.
* Without permission, no one has the right to obtain, disclose or use this software in any way.
*/

package ecarx.xsf.notificationcenter.push;

import android.content.Context;


public abstract class NotificationPushManager {

    public void init(Context context) {
        NotificationPush notificationPush = create();
        notificationPush.init(context);
    }

    public void handlePush(Context context, String payload) {
        PushMsgParser parser = PushMsgParser.newInstance(context, payload);
        parser.sendNotification();
    }

    public abstract NotificationPush create();
}
